package com.lagou.edu.common;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import redis.clients.jedis.JedisPoolConfig;

import java.util.List;

/**
 * @author 陶肖寅
 * @version V1.0
 * <p>
 * date: 2020/9/4 下午1:57
 * email:fromlx@126.com
 * @Copyright: 2020-2021 城云科技(中国)有限公司
 * </p>
 */
@Component
@ConfigurationProperties(prefix = "spring.redis")
@Data
public class RedisProperties {
    private List<String> clusterNodes;
    private Integer timeout;
    private Integer   commandTimeout;
    private Integer expireSeconds;
    private Integer datasource;
    private String password;
    private JedisPoolConfig pool;
}
